const webpackConfig = require('./webpack.config');
module.exports = {
    pwa: {
        themeColor: '#F5A623',
    },

    lintOnSave: undefined,

    devServer: {
        port: 7060,
        proxy: {
            '/api': {
                target: 'http://192.168.1.152:8089',
                changeOrigin: true,
                pathRewrite: {
                    '^/api': 'api',
                },
            },
        },
    },
    css: {
        sourceMap: true,
        loaderOptions: {
            sass: {
                data: `@import "@/assets/style/_index.scss";`,
            },
        },
    },

    baseUrl: '/vue-cli3/',
    // assetsDir: 'https://twtybai.gitee.io/vue-cli3/',

    configureWebpack: webpackConfig,
};
